<?php

use yii\db\Schema;
use yii\db\Migration;

class m170502_071238_update_ad_type_comment extends Migration
{
    public function up()
    {
        return $this->alterColumn('{{%creative}}', 'ad_type', "int(2) unsigned NOT NULL DEFAULT '0' COMMENT ' form为 2或3 时有效, 0 Banner广告, 1 开屏广告, 2 插屏广告, 3 信息流广告'");
    }

    public function down()
    {
        echo "m170502_071238_update_ad_type_comment cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
